package Test;

import java.time.Year;

public class MyDateTest {

	public static void main(String[] args) {
		/*声明一个日期类型MyDate：有属性：年year,月month，日day。创建2个日期
	    对象，分别赋值为：你的出生日期，你对象的出生日期，并显示信息。*/
		MyDate date1 = new MyDate();
		date1.year = 1993;
		date1.month = 8;
		date1.day = 8;
		System.out.println("出生日期为：" + date1.year + "年" + date1.month + "月" + date1.day + "日");

		MyDate date2 = new MyDate();
		date2.year = 1998;
		date2.month = 8;
		date2.day = 8;
		System.out.println("出生日期为：" + date2.year + "年" + date2.month + "月" + date2.day + "日");
	}

}
